import instance from "@/utils/request";
//获取所有信息
export const GetAllPublicResources=(page,pageSize,occupationID,classesId,resourcesName)=>{
    const params=new URLSearchParams();
    params.set("page",page);
    params.set("pageSize",pageSize);
    params.set("occupationId",occupationID);
    params.set("classesId",classesId);
    params.set("resourcesName",resourcesName);
    return instance.get("/publicresource",{params:params});
}
//添加到自己的资源库中
export const AddPublicResources=(userId,resourcesId)=>{
    console.log(resourcesId);
    return instance.post("/publicresource/"+userId,resourcesId);
}
//关注用户
export const AttenUser=(userId,beuserId)=>{
    const data={
        userId:userId,
        beuserId:beuserId
    }
    return instance.post("/publicresource",data);
}
